package com.gviiii.pprf.netty.event;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.nio.NioDatagramChannel;

/**
 * 初始化类
 */
public class EventChannelInitializer extends ChannelInitializer<NioDatagramChannel> {

    @Override
    protected void initChannel(NioDatagramChannel channel) throws Exception {
        channel.pipeline()
                .addLast(new EventEncoder())
//                .addLast(new EventDecoder())
                .addLast(new EventChannelHandler());
    }
}
